package com.augurit.wf.jbpmex.task.multitask.completerule.base;

import java.util.List;

import org.jbpm.pvm.internal.history.model.HistoryTaskImpl;
import org.jbpm.pvm.internal.task.TaskImpl;

import com.augurit.common.base.form.ResultForm;

public abstract class BaseCompleteRule implements ICompleteRule {

	protected TaskImpl curTask;
	protected TaskImpl superTask;
	protected List<HistoryTaskImpl> hisChildTasks;
	
	protected void initParams(TaskImpl curTask, TaskImpl superTask, List<HistoryTaskImpl> hisChildTasks){
		this.curTask = curTask;
		this.superTask = superTask;
		this.hisChildTasks = hisChildTasks;
	}
	
	public abstract ResultForm validate(String[] userKeys);

	public abstract boolean isEnd();
}
